// 路由文件
import {createRouter,createWebHashHistory} from "vue-router";

 import Home from "./views/Home.vue";
 import About from "./views/About.vue";

 const router = createRouter({
     history: createWebHashHistory(),
     routes: [
         { path: '/', component: Home },
         { path: '/About', component: About, name: 'About' },
     ]
 })
export default router;  // 导出